﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace WinformToolkit.Binding
{
    internal class BindingContext
    {
        /// <summary>
        /// 被绑定的数据源
        /// </summary>
        public object Source { get; set; }

        /// <summary>
        /// 被绑定的数据源的名字
        /// </summary>
        public string Path { get; set; }

        /// <summary>
        /// 绑定到的目标控件
        /// </summary>
        public Control Target { get; set; }

        /// <summary>
        /// 绑定到的属性
        /// </summary>
        public string Property { get; set; }
    }
}
